function chk(){

 if((document.bform.from.value)>(document.bform.to.value))
	{
	   alert("From date should be less than To date ");
	   document.bform.from.focus();
	   return false; 
	 }

 }